package cn.colins.consumer.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @program: dubbo-annotation-study
 * @description:
 * @author: colins
 * @create: 2023-05-08 21:47
 **/
@Slf4j
@Component("testEvent")
public class TestEventImpl implements TestEvent{
    @Override
    public void oninvoke(String test) {
        log.info("test方法调用前");
    }

    @Override
    public String onreturn(String result, String test) {
        log.info("test方法调用后");
        return null;
    }

    @Override
    public void onthrow(Throwable throwable, String test) {
        log.info("test方法异常时",throwable);
    }
}
